Type Inference With Simple Subtypes

نویسنده

  • John C. Mitchell
چکیده

ion clause, we use A -{x:σ} to denote the set difference, i.e., the type assignment defined by removing x:σ from A. G(x) = { s⊆t }, {x:s} ⊃ x:t G(MN) = let C1, A1 ⊃ M:σ = G(M) C2, A2 ⊃ N:τ = G(N), with type variables renamed to be disjoint from those in G(M) S = UNIFY({α=β | x:α∈A1 and x:β∈A2} ∪ {σ=τ→t}) where t is a fresh type variable in SC1∪SC2∪{St⊆u}, SA1∪SA2 ⊃ MN:u where u is a fresh type variable G(λx.M) = let C, A ⊃ M:τ = G(M) in if x:σ∈A for some σ then C∪{σ→τ⊆u}, (A -{x:σ}) ⊃ λx.M:u else C∪{s→τ⊆u}, A ⊃ λx.M:u, where s, u are fresh type variables The algorithm could conceivably fail in the application case if the call to UNIFY fails. Howev er, we will see that this does not happen. It is not to hard to prove that if G(M) succeeds, then it produces a provable typing for M. THEOREM 13. If G(M) = C,A ⊃ M:σ, then − C,A ⊃ M:σ. It follows, by Lemma 11, that every instance of G(M) is a provable typing for M. Conversely, every provable typing for M is an instance of G(M). THEOREM 14. Suppose − C,A ⊃ M:σ. Then G(M) succeeds and produces a typing with C,A ⊃ M:σ as an instance. Both theorems are proved below. From Lemma 2, we know that every term has a provable CC typing. Therefore, Theorem 14 implies G(M) always succeeds.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Bayes Estimation for a Simple Step-stress Model with Type-I Censored Data from the Geometric Distribution

This paper focuses on a Bayes inference model for a simple step-stress life test using Type-I censored sample in a discrete set-up. Assuming the failure times at each stress level are geometrically distributed, the Bayes estimation problem of the parameters of interest is investigated in the both of point and interval approaches. To derive the Bayesian point estimators, some various balanced lo...

متن کامل

Type Inference with Constrained Types

In this paper we present a general framework HM(X) for Hindley/Milner style type systems with constraints. We give a generic type inference algorithm for HM(X). Under suucient conditions on X, type inference will always compute the principal type of a term. We give an extension of our HM(X) systems which deals with subtyping. In particular, the type inference algorithm for subtypes computes pri...

متن کامل

Inference for the Type-II Generalized Logistic Distribution with Progressive Hybrid Censoring

This article presents the analysis of the Type-II hybrid progressively censored data when the lifetime distributions of the items follow Type-II generalized logistic distribution. Maximum likelihood estimators (MLEs) are investigated for estimating the location and scale parameters. It is observed that the MLEs can not be obtained in explicit forms. We provide the approximate maximum likelihood...

متن کامل

Statistical Inference for the Lomax Distribution under Progressively Type-II Censoring with Binomial Removal

This paper considers parameter estimations in Lomax distribution under progressive type-II censoring with random removals, assuming that the number of units removed at each failure time has a binomial distribution. The maximum likelihood estimators (MLEs) are derived using the expectation-maximization (EM) algorithm. The Bayes estimates of the parameters are obtained using both the squared erro...

متن کامل

Comparison of Perfectionism and Tolerance of Ambiguity in the Subtypes of Illness Anxiety Disorder

Objective: Illness Anxiety Disorder (IAD) has two subtypes, care-seeking type, and care-avoidant. There is little information about the differences between the two subtypes.  Methods: This study was carried out to compare perfectionism and tolerance of ambiguity in the subtypes of the IAD. To this end, a causal-comparative design was employed. The statistical population of the study included t...

متن کامل

Anatomical location of basal cell carcinoma in relation to histopathological subtypes: Analysis of 189 cases in Hamadan Sina Hospital during 1997-99

Background: Basal cell carcinoma (BCC) is the most common skin cancer in whites. Objective: Determination of anatomical localization of BCC in relation to histological subtypes of this tumor. Patients and methods: This survey is a descriptive cross sectional study carried out on 189 cases of BCC patients diagnosed in Hamadan Sina hospital between 1997-1999. Results: This study showed 7 hi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • J. Funct. Program.

دوره 1  شماره 

صفحات  -

تاریخ انتشار 1991